﻿#pragma once


// CTextInfoDlg 对话框

class CTextInfoDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CTextInfoDlg)

public:
	CTextInfoDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CTextInfoDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_EDIT };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()

private:
	CString m_strText;
	CString m_strCaption;
	int m_width;
	int m_height;

public:
	void SetTextInfo(LPCTSTR caption, LPCTSTR text, int width, int height)
	{
		m_strCaption = caption;
		m_strText = text; 
		m_width = width; 
		m_height = height;
	}
	virtual BOOL OnInitDialog();
};
